home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
351-375
/
368
/
newex
/
newex_en.doc
< prev
next >
Wrap
Text File
|
1995-03-14
|
5KB
|
139 lines
***************************************************************
* *
* N N EEEEE W W EEEEE X X *
* NN N E W W E X X *
* N N N EEEE W W EEEE XX *
* N NN E W WW W E X X *
* N N EEEEE W W EEEEE X X Version 1.1 *
* *
***************************************************************
NewExecute by Kjell Cederfeldt June-90. Programmed in 100%
68000 Assembler. The program is Public Domain (PD) and may be
copied and distributed, only for private use.
Kjell Cederfeldt
DataCentralen 115700 AB
Box 2393
S-403 16 GÖTEBORG phone +46 31 139316
SWEDEN
NewEx is completely unique and replaces XIcon, IconX and simular
programs.
NewEx as the latter programs runs a script file. But the icon
in NewEx is of the tool type. What is the advantage with this?
Programs like MyMenu (*) or simular ones do not work with programs
which have project icon.
Why running a script file?
Suppose that you want to start a terminal program. First you have to
change fonts and then the keymap. The terminal program may even
require certain Assigns. All this can be done in your script fil.
But to avoid the need to start two programs or to click on two icons
the start of the main program is included in the script file.
This can be done with the Commodore IconX but unfortunately IconX has
a project icon which make a start from a menu program e.g. MyMenu
impossible. NewEx has a tool icon.
NewEx can be used to start programs which otherwise only could be done
with CLI.
START FROM CLI!
NewEx can be started from CLI. Syntax is the NewEx filename.
Possible output data (like text from command Echo and so on) will then
appear in the CLI window where the program was started.
START FROM THE WORKBENCH. (WB)
Usually the program is started from the WB. It is then important
to name file name and output unit in tool icons and tooltype lines.
These parameters are FILENAME and WINDOW. Note, both must be named
to get the program working. It is important that FILENAME and WINDOW
are written in capital letters.
HOW TO DO:
Click the NewEx icon once so it will be activated (changes
colour).
Choose Info from Workbech menu.
Click ADD and write FILENAME=scriptfilename
Click ADD again and write WINDOW=CON:0/11/640/150/NewEx
Save the setting by clicking SAVE.
(If those two lines exist you only have to change the names.
Use the pointer at the beginning of the line to change.)
Double click on your icon. The program is executed and runs
your scriptfile (like execute but from workbench).
Note how to set path, assigns and CD.
You can write NIL: behind WINDOW to get rid of the window which is
opned each time you run the program. The disadvantage is that you
loose messages, error messages and other output texts.
You can write several WINDOW (own lines) but only the first activates.
If you want to "deactivate" a WINDOW-line you can write wINDOW instead.
(Note the small letter).
NewEx will then choose the next line which contains WINDOW with capital
letters.
CON:0/11/640/150/NewEx is size and name of the window.
0/11 means 0 pixels from the left and 11 pixels from the top of the
screen.
640/150 is the width and height in pixels. 640 is the maximal width on
a normal 80-character screen. 256 is the maximum height in pixels on
a PAL-screen (the most common). Note that these values decreases if
you move the window towards the screen centre.
Instead of CON: you can choose RAW:. Instead of opening a window you
can send the output a printer PRT: , PAR: or to an ordinary file.
Note than an existing file will disappear.
When starting from CLI the program doesn't consider what is placed in
the icon, but expect a file name after the program name (NewEX).
Output data is written in CLI.
It is possible to controll this text by the file Editor in the AmigaDos.
CLI Exemaples:
NewEx > CON:0/11/640/100/Test scriptfilename
NewEx > PRT: scriptfilename
NewEx > PAR: scriptfilename
NewEx > SER: scriptfilename
NewEx >NIL: (Note thee file Editor together with NIL:)
NewEx > File scriptfilename
Much benefit and pleasure / Kjell Cederfeldt
(*) Mymenu is a program which gives the workbench screen more self
defined menus. from these menus you can start different programs
defined in MyMenu (e.g. NewEx).
MyMenu is written by Darin Johson. (*)